{% extends 'index2.html' %}
{% block body %}
        <table cellpadding="2" cellspacing="3" border="0" style="width:90%">
            <tr>
                <th>Codice</th>
                <th>C Barre</th>
                <th>Articolo</th>
                <th>Magazzino</th>

                <th>Giace</th>
                {% if "SchedaLavorazione" in environment.modulesList %}
                <th>Impegnato</th>
                {% endif %}
                <th>Valore</th>
                <th>Scorta min.</th>
                <th>Data fine sc</th>
                <th>Data prox ordine</th>
            </tr>
           {% for dao in pageData["objects"] %}
            <tr class="row">
                <td class="detail" style="width:70px;" >{{dao.codice_articolo}}</td>
                <td class="detail" style="width:10px;">{{dao.arti.codice_a_barre}}</td>
                <td class="detail" style="width:470px;">{{dao.articolo}}</td>
                <td class="detail" style="width:70px;">{{dao.magazzino}}</td>

                <td class="detail" align="right" style="width:50px;"><strong>{{utils.mN( dao.giacenza[0],1)}}</strong></td>
                {% if "SchedaLavorazione" in environment.modulesList %}
                    <td class="number">{{ dao.impegnato_su_lavorazione}}</td>
                {% endif %}
                <td class="detail" align="right" style="width:80px;">{{utils.mNLC(dao.valoreGiacenza,2)}}</td>
                <td class="detail" style="width:50px;">{{dao.scorta_minima|nonone}}</td>
                <td class="detail" style="width:50px;">{{utils.dateToString(dao.data_fine_scorte)}}</td>
                <td class="detail" style="width:50px;">{{utils.dateToString(dao.data_prossimo_ordine)}}</td>

            </tr>
            {% endfor %}
        </table>
{% endblock %}
